package wookee.basic;

import java.util.Scanner;

public class J07_SungJukV2 {
	public static void main(String[] args) {
		
		//성적 처리 프로그램 ver2
		//반복문을 이용해서 성적 데이터 입력처리
		
		Scanner sc = null;
		String name;
		int isLoop = 1;
		int kor, eng, mat;
		final String title = "성적 처리 프로그램";
		final String hdrline = "------------------";
		final String guide1 = "이름?";
		final String guide2 = "국어점수?";
		final String guide3 = "영어점수?";
		final String guide4 = "수학점수?";
		final String guide5 = "또? 예:1/아니오:0 ";
		
		sc = new Scanner(System.in);
		System.out.println(title);
		
		
		do {
		System.out.println(hdrline);
		System.out.println(guide1);
		name = sc.next();
		System.out.println(guide2);
		kor = sc.nextInt();
		System.out.println(guide3);
		eng = sc.nextInt();
		System.out.println(guide4);
		mat = sc.nextInt();
		System.out.println(guide5);
		isLoop = sc.nextInt();
		
		}
		while ( isLoop != 0);
		
		System.out.println(hdrline);
		System.out.println("성적입력을 마칩니다");
		sc.close();
		
	}

}
